home *** CD-ROM | disk | FTP | other *** search
- Lattice Extended Hunk Types
- ===========================
-
- Lattice C versions 4 and 5 use new forms of hunk types in linkable
- files and these are now supported by Devpac Amiga. This is only
- useful for Lattice users, everyone else can ignore the rest of this file.
-
- Do get this you must specify OPT Y+. It only has an effect when
- generating linkable code and will only work with modern versions
- of BLink. Don't try to use the one supplied with Devpac (or ALink)
- but use the one supplied with your Lattice compiler.
-
- After an OPT Y+ you can then refer to imports (XREFs) and symbols
- in other other sections relative to an address register and
- everything will work (after you link). For example,
-
- OPT L+,Y+
- SECTION CODE,CODE
- XREF _CGlobal
- XDEF _AsmGlobal,_test
-
- _test move.l _CGlobal(a4),d0
- move.l d0,_AsmGlobal(a4)
- rts
-
- SECTION __MERGED,DATA
- _AsmGlobal ds.l 1
-
- Don't forget the underlines on the imports & exports.
-
- See your Lattice manual for further details of assembly-language
- interfacing.
-
-